package API;

public class Example2 {
    public static void main(String[] args) {
        String x = "ACBABCabcdefg";
        System.out.println(x.length());
        System.out.println(x.charAt(0));
        System.out.println(x.indexOf("ab"));
/******************************************************************/
        int [] arr = {10,20,30,40,50,60};
        int [] arr1 = {11,22,33,44,55,66};
        System.arraycopy(arr,2,arr1,3,3);
        for (int i = 0; i < arr1.length; i++) {
            System.out.print(arr1[i] + " ");
        }
        /****************************************************************************/
        int [] yuan = {10,20,30,40,50};
        int  [] mu = {100,200,300,400,500};
        System.arraycopy(yuan,2,mu,0,3);
        for (int i = 0; i < mu.length; i++) {
            System.out.print(mu[i] + " ");
        }
    }
}
